<?php

namespace app\admin\validate;

use think\Validate;

class IpGroup extends Validate
{
    //字段规则
    protected $rule = [
        'name' => 'require',
    ];

    //验证器提示信息
    protected $message = [
        'name.require' => '变量名不能为空',
    ];

    //使用场景
    protected $scene = [
        'add' => ['name'],
    ];
}